from tkinter import *
root = Tk()
root.title('Марафон. Этап 1')
root.geometry ('500x500')
canvas = Canvas (bg = 'white', width = 450, heigh = 450)
canvas.pack (anchor = CENTER, expand = 1)
x = int(input())
y = int(input())
k = int(input())
if (x<0) or (y<0) or (x + 20 * k > 450) or (y + 30* k > 450) or (x + 20 * k <0) or (y + 30 * k < 0):
    print ('NO')
else:
    canvas.create_rectangle(x, y+10*k, x+20*k, y+20*k, fill = 'blue', outline = 'blue')
    canvas.create_rectangle(x, y, x+10*k, y+30*k, fill = 'blue', outline = 'blue')
